You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tel:24379' class='c-bl pc-link'>.24379.jpg'' at line 1
SELECT id FROM `SC_errorPageLog` WHERE ip = '13.59.134.65' AND page = '/published/publicdata/SAJTZONASPORTA/attachments/SC/images/screenshot_12<a href='tel:24379' class='c-bl pc-link'>.24379.</a>jpg'